﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace Hospital
{
    public partial class TitleUserControl : UserControl
    {
        public TitleUserControl()
        {
            InitializeComponent();
        }

        private void btnEnter_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            if (this.Parent.Controls.Count > 1)
            {
                this.Parent.Controls[0].Visible = true;
                this.Parent.Controls.RemoveAt(1);
               
            }
        }

        private void lblSystem_Click(object sender, EventArgs e)
        {

        }

        private void cbTitle_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void lblTitle_Click(object sender, EventArgs e)
        {

        }

        private void btnExit_Click(object sender, EventArgs e)
        {
            this.ParentForm.Close();
        }
    }
}
